package com.ruoyi.project.tool.swagger.UserController;

import com.ruoyi.framework.aspectj.lang.annotation.SignatureValidation;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.system.domain.SysAgreement;
import com.ruoyi.project.system.service.ISysAgreementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/mobileUser/userAgreement")
public class UserAgreementController {

    @Autowired
    private ISysAgreementService sysAgreementService;

    /**
     *  用户端展示 协议 及 内容
     * */
    @SignatureValidation
    @PostMapping("/showAgreement")
    public AjaxResult showAgreement(@RequestBody SysAgreement sysAgreement){
        return AjaxResult.success(sysAgreementService.showAgreement(sysAgreement));
    }
}
